@extends('admin.layout.layout')
@section('content')



<div class="row">
    <div class="col-lg-12">
        <div class="panel panel-default">
            <div class="panel-heading">
               管理员回复
            </div>
            <div class="panel-body">
                <div class="row">
                    <div class="col-lg-6 col-lg-offset-3">
                    	@if (count($errors) > 0)
						    <div class="alert alert-danger">
						        <ul>
						            @foreach ($errors->all() as $error)
						                <li>{{ $error }}</li>
						            @endforeach
						        </ul>
						    </div>
						@endif
                        <form role="form" action="{{url('admin/comment/update')}}" method="post" enctype="multipart/form-data">
                            <input type="hidden" name="id" value="{{$com->id}}">
                            <table>
                                
                                    <tr>
                                        <th style="width:250px">
                                            
                                                景点名称  
                                                                                  
                                        </th>
                                        <td>
                                                {{$com->sname}}
                                        </td>
                                    </tr>
                                    <tr>
                                    <th>
                                                评论内容
                                                                            
                                        
                                    </th>
                                    <td>
                                            <div class="form-group">
                                                <textarea name="contents" id="" cols="60" rows="5" style="resize:none">{{$com->contents}}</textarea>   
                                            </div>                                      
                                    </td>
                                    </tr>
                                    <tr>
                                    <th>
                                            图片
                                    </th>
                                    <td>
                                            <div class="form-group">
                                            <img src="/public/uploads/s_{{$com->tupian}}" alt="">
                                         
                                            </div>  
                                    </td>
                                    </tr>
                                    <tr>
                                    <th>
                                        回复
                                        
                                    </th>
                                    <td>
                                            <div class="form-group">
                                                <textarea name="reply" id="" cols="60" rows="5" style="resize:none" value="请输入不少于50字"></textarea>

                                            </div>                                      
                                    </td>                                        
                                    </tr>

                             


                            </table>

							{{csrf_field()}}
                            <button type="submit" class="btn btn-default">提交</button>
                            <!-- On rows -->


                            
                        </form>
                    </div>
                    <!-- /.col-lg-6 (nested) -->
                </div>
                <!-- /.row (nested) -->
            </div>
            <!-- /.panel-body -->
        </div>
        <!-- /.panel -->
    </div>
    <!-- /.col-lg-12 -->
</div>
<!-- /.row -->


@endsection